/* RESET */

.page {
    width: 100%;            /* La página ocupa el 100% del ancho disponible */
    max-width: 1920px;       /* El ancho máximo de la página */
    margin: 0 auto;          /* Centrar la página horizontalmente */
    padding: 0px;           /* Espacio interno */
    background-color: #fff;  /* Color de fondo blanco */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra suave para dar relieve */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'EB Garamond', serif;
  color: #fff;
  line-height: 1.6;
  background-color: #f8f9fa;
  
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5); /* Transparente */
  backdrop-filter: blur(6px);
}

nav .logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 75px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  font-size:20px;
}

nav ul li a:hover,
nav ul li a.active {
  color: #d4af37; /* Dorado */
}
.logo img {
  height: 50px; /* Ajusta según tu diseño */
  width: auto;
}

/* === FIX: Evitar scroll lateral === */
html, body {
  overflow-x: hidden;
}

/* === Menú hamburguesa === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animación de la X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === RESPONSIVE NAV === */
@media (max-width: 992px) {
  nav {
    padding: 15px 20px; /* menos padding */
  }

  nav ul {
    gap: 30px; /* menos separación */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.3s ease;
    margin: 0;
    padding: 0;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li a {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  nav .logo img {
    height: 35px;
    max-width: 140px;
  }

  nav ul li a {
    font-size: 1.2rem;
  }
}


/* HERO */
.cof-hero {
  position: relative;
  background: url("images/Banner principal DEFENSA DE MULTAS COFEPRIS.webp") no-repeat center center/cover;
  height: 80vh; /* altura pantalla completa */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'EB Garamond', serif;
  color: #fff;
}

.cof-hero-overlay {
  background: rgba(0, 0, 0, 0.4); /* capa oscura encima */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cof-hero-content h1 {
  font-size: 6rem;
  font-weight: 400;
}

.cof-hero-content h1 strong {
  font-weight: 700;
}

.cof-hero-content h2 {
  font-size: 6rem;
  font-weight: 700;
  color: #FED870; /* dorado/amarillo */
  margin: 15px 0;
  letter-spacing: 3px;
}

.cof-subtitulo {
  font-size: 2.3rem;
  background: rgba(0,0,0,0.7);
  display: inline-block;
  padding: 8px 20px;
  margin-top: 15px;
  border-radius: 5px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .cof-hero-content h1 {
    font-size: 2rem;
  }

  .cof-hero-content h2 {
    font-size: 2.2rem;
  }

  .cof-subtitulo {
    font-size: 1rem;
  }
}

/* ====== SECCIÓN DEFENSA ====== */
.cof-defensa {
  background: #f8f9fa; /* Fondo claro */
  padding: 60px 20px;
  text-align: center;
  font-family: 'Maven Pro', sans-serif;
}

.cof-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cof-titulo {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 700;
}

.cof-dorado {
  color: #a37b46; /* Dorado */
}

.cof-azul {
  color: #1b3342; /* Azul oscuro */
}

.cof-subtitulo2 {
  font-size: 18px;
  color: #1b3342;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

.cof-subtitulo2 strong {
  font-weight: 700;
  color: #1b3342;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .cof-titulo {
    font-size: 22px;
  }
  .cof-subtitulo2 {
    font-size: 16px;
  }
}

/* ===== ESTILOS BANNER ===== */
.cofe-banner {
  width: 100%;
  height: auto;
  overflow: hidden;
 padding: 50px 50px;
}

.cofe-banner-img {
  display: block;
  width: 100%;
  height: auto; /* asegura que no se corte */
}


/* ===== SECCIÓN COFEPRIS ===== */
.cofep-section {
  position: relative;
  width: 100%;
  height: auto;
  background: url("images/Doctor con cadenas.webp") no-repeat center center/cover;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #1b3342;
  overflow: hidden;
}

/* Franja azul superior */
.cofep-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #173c5a; /* Azul superior */
  z-index: 2;
}

/* Overlay blanco semitransparente (desactivado por defecto en escritorio) */
.cofep-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* En escritorio no hay overlay */
  z-index: 1;
}

/* Overlay para el texto */
.cofep-overlay {
  position: relative;
  width: 100%;
  padding: 60px 8% 40px;
  display: flex;
  align-items: center;
  z-index: 3;
}

/* Contenedor del texto */
.cofep-content {
  max-width: 780px;
  color: #0e2c45;
  font-size: 35px;
  line-height: 1.6;
}

.cofep-content strong {
  font-weight: 700;
}

.cofep-content .cofep-bold {
  color: #0e2c45;
}

.cofep-content ul {
  margin-top: 15px;
  padding-left: 20px;
}

.cofep-content ul li {
  margin-bottom: 8px;
  font-weight: normal;
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 992px) {
  .cofep-section::after {
    background: rgba(255, 255, 255, 0.65); /* Overlay blanco solo en tablets/móviles */
  }
  .cofep-overlay {
    padding: 50px 6% 30px;
  }
  .cofep-content {
    font-size: 28px;
    max-width: 100%;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .cofep-section::after {
    background: rgba(255, 255, 255, 0.65); /* Overlay blanco */
  }
  .cofep-overlay {
    padding: 40px 5% 25px;
  }
  .cofep-content {
    font-size: 22px;
    line-height: 1.4;
  }
  .cofep-content ul {
    padding-left: 15px;
  }
  .cofep-content ul li {
    font-size: 18px;
  }
}



/* ULTIMA */
.seccion-fondo {
    position: relative;
    width: 100%;
    min-height: 280px;  /* ajusta según necesites */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;

    /* 👇 Usa la imagen completa de fondo */
    background-image: url('images/Imagen final.webp');
    background-size: cover;     /* asegura que cubra toda la sección */
    background-position: center;
    background-repeat: no-repeat;
  }

  .seccion-fondo__contenedor {
    max-width: 1640px;
    padding: 40px 20px 0 420px;
    color: #fff;
  }

  .seccion-fondo__texto {
    font-size: 24px;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .resaltar {
    color: #f0c84a;  /* Dorado */
    font-weight: 700;
  }

  .seccion-fondo__llamada {
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
  }

/* ===================== */
/* 📱 RESPONSIVO TABLET */
/* ===================== */
@media (max-width: 992px) {
  .seccion-fondo__contenedor {
    padding: 30px 40px;
    text-align: center;   /* en tablet centramos el texto */
  }

  .seccion-fondo__texto {
    font-size: 20px;
  }

  .seccion-fondo__llamada {
    font-size: 18px;
  }
}

/* ===================== */
/* 📱 RESPONSIVO MÓVIL */
/* ===================== */
@media (max-width: 576px) {
  .seccion-fondo {
    min-height: 220px;
    text-align: center;   /* en móvil todo centrado */
    justify-content: center;
  }

  .seccion-fondo__contenedor {
    padding: 20px;
  }

  .seccion-fondo__texto {
    font-size: 18px;
    line-height: 1.4;
  }

  .seccion-fondo__llamada {
    font-size: 16px;
  }
}